package com.my.db.test.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.my.core.page.PageInfo;
import com.my.core.page.PageParam;
import com.my.db.test.mybatis.Employee;
import com.my.db.test.mybatis.base.BaseServiceImpl;
import com.my.db.test.mybatis.mapper.EmployeeMapper;
import com.my.db.test.mybatis.service.EmployeeService;
import org.springframework.stereotype.Service;

/**
 * @author timo 2021/3/25
 */
@Service
public class EmployeeServiceImpl extends BaseServiceImpl<EmployeeMapper, Employee> implements EmployeeService {

    @Override
    public PageInfo<Employee> queryOwenPage(PageParam pageParam, String id) {
        Page<Employee> page = new Page(pageParam.getPageNumber(), pageParam.getPageSize());
        return selectPage(baseMapper.queryOwenPage(page, id));
    }
}
